[HVM] Save/restore: clean up marshalling code
authorTim Deegan <Tim.Deegan@xensource.com>
Wed, 31 Jan 2007 10:27:10 +0000 (10:27 +0000)
committerTim Deegan <Tim.Deegan@xensource.com>
Wed, 31 Jan 2007 10:27:10 +0000 (10:27 +0000)
commit674ccf326621592d655c3137cb2799a815857c58
tree4001252fea388d4e27db25a2cab94b974b78be61
parentff0b3cef8ddd22fa2cce178c2bc894a966f8a0bb
[HVM] Save/restore: clean up marshalling code
- All entries are now defined as structs and saved/restored
  in self-contained operations.
- Save/restore operations are type-safe, to tie each entry's
  typecode to a particular struct and its length.
- Save/restore handlers are registered once per host instead of
  per domain.
- Detect buffer overrun before it happens and abort.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
13 files changed:
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/i8254.c
xen/arch/x86/hvm/intercept.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vioapic.c
xen/arch/x86/hvm/vlapic.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vpic.c
xen/include/asm-x86/hvm/domain.h
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/hvm/support.h
xen/include/public/hvm/save.h